GetPalColorCount
Returns
information of the imaG palette at a
specific color count mode.
Syntax: | imaG.GetPalColorCount (mode , index) |
mode | See caColorCountModeConstants |
index (integer) | OPTIONAL - Determines the index in the palette to obtain the information. Must be in the range 0-255 ; 0-15 ; 0-1 for a color depth 8 ; 4 ; 1 |
Returns: (long) | Color information. |
MODE
caColorCountColor = 0 | Counts the number of times a palette color
is used in a imaG's at a specific palette index. |
caColorCountMax = 1 | Counts the maximum number of times a palette color is used in a PicctureX's and returns the color value. |
caColorCountMin = 2 | Counts the minimum number of times a palette color is used in a imaG's and returns the color value. |
If the image is a true color image (24 bit per pixel depth), an ERROR will be thrown.
See also ColorCount , ColorDepth , Color & Palettes